package com.jpro.module.system.controller.admin.permission.vo.permission;



import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Collections;
import java.util.Set;

@Schema(description = "管理后台 - 赋予角色栏目类数据权限 Request VO")
@Data
public class PermissionAssignRoleChannelDataScopeReqVO {

    @Schema(description = "角色编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "角色编号不能为空")
    private Long roleId;

    @Schema(description = "数据范围 参见 DataScopeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "数据范围不能为空")
    private Integer channelDataScope;

    @Schema(description = "站点编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long siteId;

    @Schema(description = "栏目编号列表", example = "1,3,5")
    private Set<Long> dataScopeChannelIds = Collections.emptySet(); // 兜底

}
